<?php
class ORMProduceItemUser extends ORMBase {
  public function __construct() {
    parent::__construct('ProduceItemUser');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->estimates = isset($object->estimates) ? $object->estimates : 0;
    $epObject->extras = isset($object->extras) ? $object->extras : 0;
    $epObject->travels = isset($object->travels) ? $object->travels : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->estimates = $epObject->estimates;
    $object->extras = $epObject->extras;
    $object->travels = $epObject->travels;
    return $object;
  }
}
?>
